package com.lanyam.travel.base.entity.base;

import org.apache.shiro.authc.UsernamePasswordToken;

public class OpenidToken extends UsernamePasswordToken{
	
	private String pwd="openid";
	 
    private  String  openid;

    public OpenidToken(String openid) {
        this.openid = openid;
    }
    
    @Override
    public Object getPrincipal() {
        return this.openid;
    }
 
    /**
     * 默认给固定密码
     * @return
     */
    @Override
    public Object getCredentials() {
        return this.pwd;
    }
 
    /**
     * 默认给记住
     * @return
     */
    @Override
    public boolean isRememberMe() {
        return Boolean.TRUE;
    }

}
